package util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class DateTimeUtil {
	
	public static final String DEFAULT_DATE_FORMAT_NOW = "yyyy-MM-dd HH:mm:ss";
	
	
	public static String format(Date date, String formatType) {
	    SimpleDateFormat sdf = new SimpleDateFormat(formatType);
	    return sdf.format(date);
	}

}
